home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / netstat.z / netstat
Text File  |  1998-10-20  |  13KB  |  265 lines

  1.  
  2.  
  3.  
  4. NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))                                                          NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      netstat - show network status
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      nnnneeeettttssssttttaaaatttt [ ----AAAAaaaannnnuuuu ] [ ----ffff _a_d_d_r_e_s_s__f_a_m_i_l_y ] [ _s_y_s_t_e_m ] [ _c_o_r_e ]
  13.      nnnneeeettttssssttttaaaatttt [ ----iiiimmmmnnnnqqqqrrrrssssttttMMMM ] [ ----ffff _a_d_d_r_e_s_s__f_a_m_i_l_y ] [ _s_y_s_t_e_m ] [ _c_o_r_e ]
  14.      nnnneeeettttssssttttaaaatttt [ ----nnnn ] [ ----IIII _i_n_t_e_r_f_a_c_e ] _i_n_t_e_r_v_a_l [ _s_y_s_t_e_m ] [ _c_o_r_e ]
  15.      nnnneeeettttssssttttaaaatttt ----CCCC  [ ----nnnn ] [ _i_n_t_e_r_v_a_l ] [ _s_y_s_t_e_m ]
  16.      nnnneeeettttssssttttaaaatttt [ ----pppp _p_r_o_t_o_c_o_l ] [ _s_y_s_t_e_m ] [ _c_o_r_e ]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      The _n_e_t_s_t_a_t command symbolically displays the contents of various
  20.      network-related data structures.  There are a number of output formats,
  21.      depending on the options for the information presented.  The first form
  22.      of the command displays a list of active sockets for each protocol.  The
  23.      second form presents the contents of one of the other network data
  24.      structures according to the option selected.  Using the third form, with
  25.      an _i_n_t_e_r_v_a_l specified, _n_e_t_s_t_a_t will continuously display the information
  26.      regarding packet traffic on the configured network interfaces.  The
  27.      fourth form displays statistics about the named protocol.
  28.  
  29.      The options have the following meaning:
  30.  
  31.      ----AAAA   With the default display, show the address of any protocol control
  32.           blocks associated with sockets; used for debugging.
  33.  
  34.      ----aaaa   With the default display, show the state of all sockets; normally
  35.           sockets used by server processes are not shown.  If ----qqqq is used in
  36.           conjunction with ----aaaa, information about pending connections on
  37.           listening endpoints will be displayed.  This includes the number of
  38.           partially-synchronized connections, the number of fully-synchronized
  39.           connections, and the maximum number of pending connections specified
  40.           in the _l_i_s_t_e_n(2) call.  Note that system provides some scaling on
  41.           the _l_i_s_t_e_n backlog, such that a request for a queue limit of 32 will
  42.           actually result in 49 connections being allowed prior to new
  43.           connection requests being ignored.  This means that it is possible
  44.           for the sum of the two queue lengths to be larger than the limit.
  45.  
  46.      ----llll   With the default display, on systems supporting IP security options,
  47.           show the mandatory and discretionary access control attributes
  48.           associated with sockets.  These consist of a mandatory access
  49.           control label, printed at the beginning of each line, and a socket
  50.           uid and acl, printed at the end of each line.  (For AAAAFFFF____IIIINNNNEEEETTTT sockets
  51.           only, a second mandatory access control label, _S_n_d_L_a_b_e_l, is also
  52.           shown.  _S_n_d_L_a_b_e_l is a copy of the label in the u_area.)  On systems
  53.           not supporting IP security options, ----llll is silently ignored.
  54.  
  55.      ----CCCC   Display the contents of several of the other formats in dynamic
  56.           "full-screen" forms.  Many of the values can be displayed as simple
  57.           totals (_r or "reset"), changes during the previous interval (_d or
  58.           "delta"), or changes since a fix moment (_z or "zero").  Note that
  59.           turning interfaces off or on or otherwise reseting them can make it
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))                                                          NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))
  71.  
  72.  
  73.  
  74.           seem that counters are changing wildly, since that often resets the
  75.           counters to zero.
  76.  
  77.      ----iiii   Show the state of interfaces which have been auto-configured
  78.           (interfaces statically configured into a system, but not located at
  79.           boot time are not shown).  When ----aaaa is also present, show all
  80.           addresses (unicast, multicast and link-level) associated with each
  81.           interface.
  82.  
  83.      ----iiiiqqqq  Show the information for ----iiii with the number of packets currently in
  84.           the output queue, the queue size, and the number of dropped packets
  85.           due to a full queue.
  86.  
  87.      ----IIII _i_n_t_e_r_f_a_c_e
  88.           Show information only about this interface; used with an _i_n_t_e_r_v_a_l as
  89.           described below.
  90.  
  91.      ----mmmm   Show statistics recorded by the memory management routines (the
  92.           network manages a private pool of memory buffers).
  93.  
  94.      ----nnnn   Show network addresses as numbers (normally _n_e_t_s_t_a_t interprets
  95.           addresses and attempts to display them symbolically).  This option
  96.           may be used with any of the display formats.
  97.  
  98.      ----pppp _p_r_o_t_o_c_o_l
  99.           Show statistics about _p_r_o_t_o_c_o_l, which is either a well-known name
  100.           for a protocol or an alias for it.  Some protocol names and aliases
  101.           are listed in the file /_e_t_c/_p_r_o_t_o_c_o_l_s.  A null response typically
  102.           means that there are no interesting numbers to report.  The program
  103.           will complain if _p_r_o_t_o_c_o_l is unknown or if there is no statistics
  104.           routine for it.  (This includes counting packets for the HELO
  105.           routing protocol as unknown.)
  106.  
  107.      ----ssss   Show per-protocol statistics.
  108.  
  109.      ----rrrr   Show the routing tables.  When ----ssss is also present, show routing
  110.           statistics instead.
  111.  
  112.      ----MMMM   Show the kernel multicast routing tables.  When ----ssss is also present,
  113.           show multicast routing statistics instead.
  114.  
  115.      ----ffff _a_d_d_r_e_s_s__f_a_m_i_l_y
  116.           Limit statistics or address control block reports to those of the
  117.           specified _a_d_d_r_e_s_s _f_a_m_i_l_y.  The following address families are
  118.           recognized:  _i_n_e_t, for AAAAFFFF____IIIINNNNEEEETTTT, and _u_n_i_x, for AAAAFFFF____UUUUNNNNIIIIXXXX.  (_n_s, for
  119.           AAAAFFFF____NNNNSSSS is not currently supported.)
  120.  
  121.      ----tttt   If used in conjunction with ----iiii, displays the value of the interface
  122.           watchdog timer.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))                                                          NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))
  137.  
  138.  
  139.  
  140.      ----uuuu   A synonym for ----ffff uuuunnnniiiixxxx.
  141.  
  142.      The arguments, _s_y_s_t_e_m and _c_o_r_e allow substitutes for the defaults
  143.      ``/unix'' and ``/dev/kmem''.
  144.  
  145.      The default display, for active sockets, shows the local and remote
  146.      addresses, send and receive queue sizes (in bytes), protocol, and the
  147.      internal state of the protocol.  Address formats are of the form
  148.      ``host.port'' or ``network.port'' if a socket's address specifies a
  149.      network but no specific host address.  When known the host and network
  150.      addresses are displayed symbolically according to the data bases
  151.      /_e_t_c/_h_o_s_t_s and /_e_t_c/_n_e_t_w_o_r_k_s, respectively.  If a symbolic name for an
  152.      address is unknown, or if the ----nnnn option is specified, the address is
  153.      printed numerically, according to the address family.  For more
  154.      information regarding the Internet ``dot format,'' refer to _i_n_e_t(3N).
  155.      Unspecified, or ``wildcard'', addresses and ports appear as ``*''.
  156.  
  157.      The interface display provides a table of cumulative statistics regarding
  158.      packets transferred, errors, and collisions.  The network addresses of
  159.      the interface and the maximum transmission unit (``mtu'') are also
  160.      displayed.
  161.  
  162.      The routing table display indicates the available routes and their
  163.      status.  Each route consists of a destination host or network and a
  164.      gateway to use in forwarding packets.  The flags field shows a collection
  165.      of information about the route stored as binary choices.  The individual
  166.      flags are discussed in more detail in the _r_o_u_t_e(1M) and _r_o_u_t_e(7) manual
  167.      pages.  The mapping between letters and flags is:
  168.  
  169.      1       RTF_PROTO1       Protocol-specific routing flag #1
  170.      2       RTF_PROTO2       Protocol-specific routing flag #2
  171.      B       RTF_BLACKHOLE    Just discard pkts (during updates)
  172.      C       RTF_CLONING      Generate new routes on use
  173.      D       RTF_DYNAMIC      Created dynamically (by redirect)
  174.      G       RTF_GATEWAY      Destination requires forwarding by intermediary
  175.      H       RTF_HOST         Host entry (net otherwise)
  176.      L       RTF_LLINFO       Valid protocol to link address translation.
  177.      M       RTF_MODIFIED     Modified dynamically (by redirect)
  178.      R       RTF_REJECT       Host or net unreachable
  179.      S       RTF_STATIC       Manually added
  180.      U       RTF_UP           Route usable
  181.      X       RTF_XRESOLVE     External daemon translates proto to link address
  182.      c       RTF_CKSUM        TCP/UDP checksumming done on this route
  183.  
  184.      Direct routes are created for each interface attached to the local host;
  185.      the gateway field for such entries shows the address of the outgoing
  186.      interface.  The MTU field shows the MTU value set with the _r_o_u_t_e(1M)
  187.      command for that route.  The RTT and RTTvar fields show the estimated
  188.      round-trip time (RTT) and the variance in RTT for routes with large
  189.      amounts of TCP traffic.  The RTT and RTTvar values are in seconds with a
  190.      resolution of .125 seconds.  The use field provides a count of the number
  191.      of packets sent using that route.  The interface entry indicates the
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))                                                          NNNNEEEETTTTSSSSTTTTAAAATTTT((((1111))))
  203.  
  204.  
  205.  
  206.      network interface utilized for the route.
  207.  
  208.      When _n_e_t_s_t_a_t is invoked with an _i_n_t_e_r_v_a_l argument, it displays a running
  209.      count of statistics related to network interfaces.  This display consists
  210.      of a column for the primary interface (the first interface found during
  211.      autoconfiguration) and a column summarizing information for all
  212.      interfaces.  The primary interface may be replaced with another interface
  213.      with the ----IIII option.  The first line of each screen of information
  214.      contains a summary since the system was last rebooted.  Subsequent lines
  215.      of output show values accumulated over the preceding interval.
  216.  
  217. DDDDEEEETTTTEEEERRRRMMMMIIIINNNNIIIINNNNGGGG SSSSEEEERRRRVVVVIIIICCCCEEEE UUUUSSSSAAAAGGGGEEEE
  218.      To match a socket to a process, the _f_u_s_e_r(1M) command can be used.  For
  219.      example, the command
  220.  
  221.           fuser 25/tcp
  222.  
  223.  
  224.      will display information about any processes listening on TCP port 25.
  225.      Note that _f_u_s_e_r requires the numeric value for the port, not the name of
  226.      the service.  The ----nnnn option will force _n_e_t_s_t_a_t to display service
  227.      information numerically.
  228.  
  229. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  230.      fuser(1M), nfsstat(1M), route(1M), smtstat(1), hosts(4), networks(4),
  231.      protocols(4), services(4), route(7)
  232.  
  233. BBBBUUUUGGGGSSSS
  234.      The notion of errors is ill-defined.
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.